package com.example.onlinemonitoring.WebSocket;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class NettyInitListen implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        try {
            new NettyServer(8099).start();
        } catch (Exception e) {
            System.out.println("NettyServerError:" + e.getMessage());
        }
    }
}